package org.zoomdev.zoom.validator.annotations;

import org.zoomdev.zoom.validator.Validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

// 自定义验证
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomValidate {
    Class<? extends Validator> validator();

    String message() default "验证失败";
}
